package com.yimi.yinhepda.adapter.RecycleAdapter;

import android.content.Context;
import com.yimi.yinhepda.R;
import com.pda.ym.base.CommonRecycleAdapter;
import com.pda.ym.base.CommonViewHolder;
import com.yimi.yinhepda.entity.bean.SelectSealSignStowage;
import java.util.List;

/**
 * 选择封车配载单适配器
 *
 * @author 000432
 * @date 2018/7/10 0010
 */

public class SelectSealSignStowageAdapter extends CommonRecycleAdapter<SelectSealSignStowage> {

  private CommonViewHolder.onItemCommonClickListener mCommonClickListener;

  public SelectSealSignStowageAdapter(Context context, List<SelectSealSignStowage> dataList,
      CommonViewHolder.onItemCommonClickListener commonClickListener) {
    super(context, dataList, R.layout.adapter_select_sign_stowage_item);
    this.mCommonClickListener = commonClickListener;
  }

  @Override public void bindData(CommonViewHolder holder, SelectSealSignStowage data, int position) {
    holder.setText(R.id.tv_seq, position + 1 + "");
    holder.setText(R.id.tv_stowageNo, data.getStowageNo());
    holder.setText(R.id.tv_next_station, data.getNextName());
    holder.setCommonClickListener(mCommonClickListener);
  }
}
